package com.qf.test;

import com.qf.service.PersonService;
import com.qf.service.impl.PersonServiceImpl;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 10537
 * @version V1.0
 * @Date 2021/9/28 21:23
 */

public class Demo3 {
    @Test
    public void aop(){
        ApplicationContext ac=new ClassPathXmlApplicationContext("classpath:applicationContext.xml");

        PersonService p = ac.getBean(PersonService.class);

        p.save();

    }
}
